package com.webside.site.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
import com.webside.site.mapper.SiteMapper;
import com.webside.site.model.Site;
import com.webside.site.service.SiteService;
@Service("siteService")
public class SiteServiceImpl extends AbstractService<Site, String> implements SiteService {

	@Autowired
	SiteMapper siteMapper;
	
	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(siteMapper);
	}
	
	@Override
	public int isNameExist(String name) {
		// TODO Auto-generated method stub
		return siteMapper.findCountByName(name);
	}
	
	public Site findById(String appid){
		
		return siteMapper.findById(appid);
	};

}
